package com.ruoyi.car.service.impl;

import com.ruoyi.car.domain.CatRepair;
import com.ruoyi.car.domain.CatUpkeep;
import com.ruoyi.car.mapper.CatUpkeepMapper;
import com.ruoyi.car.service.ICatUpkeepService;
import com.ruoyi.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-06-24
 */
@Service
public class CatUpkeepServiceImpl implements ICatUpkeepService
{
    @Autowired
    private CatUpkeepMapper catUpkeepMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param cId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public CatUpkeep selectCatUpkeepById(Long cId)
    {
        return catUpkeepMapper.selectCatUpkeepById(cId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param catUpkeep 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<CatUpkeep> selectCatUpkeepList(CatUpkeep catUpkeep)
    {
        return catUpkeepMapper.selectCatUpkeepList(catUpkeep);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param catUpkeep 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertCatUpkeep(CatUpkeep catUpkeep)
    {
        return catUpkeepMapper.insertCatUpkeep(catUpkeep);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param catUpkeep 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateCatUpkeep(CatUpkeep catUpkeep)
    {
        return catUpkeepMapper.updateCatUpkeep(catUpkeep);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCatUpkeepByIds(String ids)
    {
        return catUpkeepMapper.deleteCatUpkeepByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param cId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteCatUpkeepById(Long cId)
    {
        return catUpkeepMapper.deleteCatUpkeepById(cId);
    }

    /***
     * 查询车辆维修管理列表
     *
     * @param cId
     * @return
     */
    @Override
    public List<CatUpkeep> selectCarUpKeepManagesList(Long cId) {
        return catUpkeepMapper.selectCarUpKeepManagesList(cId);
    }
    /**
     * 查询【请填写功能名称】列表
     *
     * @param catUpkeep 【请填写功能名称】
     * @return 【请填写功能名称】集合
     */
    @Override
    public List<CatUpkeep> selectCat(CatUpkeep catUpkeep) {
        return catUpkeepMapper.selectCat(catUpkeep);
    }

    @Override
    public List<CatUpkeep> selectUpkeep(CatUpkeep catUpkeep) {
        return catUpkeepMapper.selectUpkeep(catUpkeep);
    }


}
